package hrms.dao;

import hrms.entity.Admin;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository("adminDao")
public interface AdminDao extends MainDao<Admin>{
	public Admin findByAdminCode(String adminCode);
	public Admin findByAdminId(Integer adminId);
	public int updateEnrolldate(Map<Object,Object> map);
	public int updatePwd (Map<Object,Object> map);
	public int addAdmin (Admin admin);
	public int findRow();
	public List<Admin> findAll(int start ,int end);
	public int deleteAdmin(int adminId);
	public Admin findOne(int adminId);
	public Admin findByEmpId(int empId);
}
